package com.example.commonapi.pojo;

import java.io.Serializable;

public class Topic implements Serializable {
    private int id;
    private int userId;
    private String content;
    private String title;
    private int start;
    private int view;
    private String time;
    private String tag;


    public Topic() {
    }

    public Topic(int userId, String content, String title, String tag) {
        this.userId = userId;
        this.content = content;
        this.title = title;
        this.tag = tag;
    }

    @Override
    public String toString() {
        return "Topic{" +
                "id=" + id +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", title='" + title + '\'' +
                ", start=" + start +
                ", view=" + view +
                ", time='" + time + '\'' +
                ", tag='" + tag + '\'' +
                '}';
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getView() {
        return view;
    }

    public void setView(int view) {
        this.view = view;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }
}
